<{capture name="header"}>
  <link href="../apps/ome/statics/ome.css" rel="stylesheet" type="text/css">       
<{/capture}>

<div class="tableform">
<h3>订单异常类型</h3>
           <div class="division">
  <form method="post" action="index.php?app=ome&ctl=admin_setting&act=addabnormal" id="form-abnormal">      
      <table width="100%" cellspacing="0" cellpadding="0" border="0">

        <tbody>
       <tr>
         <th>名称： </th>
         <td><input type="text" size="20" name="type[type_name]" value="<{$abnormal.type_name}>" vtype="required"/>
         <{help}><{t}>订单的异常处理类型在系统中的中文标识名称<{/t}><{/help}>
         
         </td>
       </tr>

        </tbody>
      </table>
<{if $abnormal.type_id}>
  <input type="hidden" name="type[type_id]" value="<{$abnormal.type_id}>">
<{/if}> 
	 <div class="table-action">
       <{button type="submit" name="Submit" label="保存" id="btn-abnormal" }>	
</div>	
   </form>
  </div>  </div>
<script>
$('form-abnormal').store('target',{
    onRequest:function(){
       $('btn-abnormal').set('disabled', 'true');
    },
    onComplete:function(jsontext){
       var json = Json.evaluate(jsontext);
       if (typeof(json.error) != 'undefined'){
           $('btn-abnormal').set('disabled', '');
       }else{
           $('btn-abnormal').set('disabled', 'true');
           var fg = opener.finderGroup;
           for(fid in fg){
             if(fid){
                fg[fid].refresh(); 
             }
           }
           window.close();
       }
    }
    });
</script>